//
//  TuijianHeadCollectionReusableView.swift
//  xmly
//
//  Created by 刘文超 on 2020/1/4.
//  Copyright © 2020 刘文超. All rights reserved.
//

import UIKit

class TuijianHeadCollectionReusableView: UICollectionReusableView {
    
    lazy var letfLabel:UILabel = {
        let label = UILabel.init()
        label.font = UIFont.systemFont(ofSize: 20)
        label.text = "猜你喜欢"
        return label
    }()
    
    lazy var rightButton:UIButton = {
        let button = UIButton.init()
        button.setTitle("更多 >", for: .normal)
        button.titleLabel?.font = UIFont.systemFont(ofSize: 14)
        button.setTitleColor(UIColor.gray, for: .normal)
        return button
    }()
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        setUI()
    }
    
    func setUI() {
        self.addSubview(self.letfLabel)
        self.letfLabel.snp.makeConstraints { (make) in
            make.left.equalToSuperview().offset(10)
            make.centerY.equalToSuperview()
        }
        
        self.addSubview(self.rightButton)
        self.rightButton.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.right.equalTo(10)
            make.width.equalTo(70)
            make.height.equalTo(40)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
